from upload_common import read_data_from_stdin
from upload_common import data_is_http_link
from upload_common import write_data_to_stdout

data = read_data_from_stdin()
if data_is_http_link(data):
    write_data_to_stdout(data)
else:
    write_data_to_stdout("".encode("utf-8"))